using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class Buff : MonoBehaviour
{
    /// <summary>
    /// buff作用类型
    /// </summary>
    public enum BUFF_EFFECT_TYPE
    {
        //周期性作用
        BUFF_EFFECT_TYPE_PERIOD = 0,
        //即刻作用
        BUFF_EFFECT_TYPE_INSTANT = 1,
    }
    public enum BUFF_TYPE
    {
        BUFF_TYPE_SLOW = 0,
        BUFF_TYPE_REGAIN_HEALTH = 1,
        BUFF_TYPE_REGAIN_FIRE = 2,
        BUFF_TYPE_REGAIN_CANT_MOVE=3,
    }
    /// <summary>
    /// buff作用时长,为0则为无限时间,单位ms
    /// </summary>
    public float duration;
    /// <summary>
    /// buff作用类型
    /// </summary>
    public BUFF_EFFECT_TYPE buffEffectType;
    /// <summary>
    /// buff周期性作用时,作用周期,单位ms,如果为instant则无效
    /// </summary>
    public float period;
    /// <summary>
    /// buff类型
    /// </summary>
    public BUFF_TYPE buffType;

    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
}
